package com.woniuxy.classdeans.service.impl;

import com.woniuxy.classdeans.mapper.UploadingMapper;
import com.woniuxy.classdeans.service.UploadingService;
import com.woniuxy.commons.entity.wyh.Knowledgepoint;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UploadingServiceImpl implements UploadingService {
    //文件上传
    @Autowired
    private UploadingMapper uploadingMapper;
    @Override
    public void insertKnowledges(List<Knowledgepoint> listKnowledgepoint) {
        uploadingMapper.insertKnowledges(listKnowledgepoint);
    }
    //遍历知识点表
    @Override
    public List<Knowledgepoint> selectAll() {
        return uploadingMapper.selectAll();
    }

    @Override
    public List<Knowledgepoint> selecKdnameAll() {
        return uploadingMapper.selectKdnameAll();
    }
}
